home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
lcppb.zip
/
LCPPLIB.ZIP
/
MAKELIB
< prev
next >
Wrap
Text File
|
1991-07-08
|
5KB
|
179 lines
#-----------------------------------------------------------------------------
#
# LEARNING C++ (for Borland C++ 2.0)
#
# by Tom Swan
#
# MAKELIB -- Make file for chapters 6 and 7 (lib)
#
# To compile all programs, make sure C:\BC\BIN is in your
# system path (replace C: with the drive letter where you
# installed Borland C++.) Then enter
#
# MAKE -fMAKELIB
#
# Copyright (c) 1991 by Tom Swan. All rights reserved.
#
#-----------------------------------------------------------------------------
# IMPORTANT:
# If files DISP.H and DISP.OBJ are not stored in
# \lcppb\lib, change the path in the following definition
# to the location of the two files. Do not end the path
# with a backslash.
lib=\lcppb\lib
# Library and include-file macros. If you change the library
# file name, you'll have to change it in every MAKE file.
library=$(lib)\lcpp.lib
include=$(lib)
# OPTION:
# To examine programs with Turbo Debugger, remove the
# leading # from the beginning of the following command. This
# will increase disk consumption drastically, so you'll
# normally leave the line as is.
#debugging = 1
# Note: If you change the debugging symbol, delete all .OBJ
# and .EXE files before remaking.
# These statements create appropriate macros based on the
# setting of the debugging symbol above. The -v option adds
# debugging information to compiled programs.
!if $d(debugging)
compile=bcc -c -v -I$(include) $(library)
link=bcc -v -I$(include) $(library)
!else
compile=bcc -c -I$(include) $(library)
link=bcc -I$(include) $(library)
!endif
# -- Force MAKE to recognize various dependencies
depends: \
tkey.exe terror.exe titem.exe tlist.exe poly.exe \
tstritem.exe tstrlist.exe twindow.exe tselect.exe \
tcommand.exe wintool.exe
# -- Compile LCPP.LIB modules
disp.obj: disp.cpp disp.h
$(compile) disp
tlib $(library) -+disp
error.obj: error.cpp error.h
$(compile) error
tlib $(library) -+error
item.obj: item.cpp item.h
$(compile) item
tlib $(library) -+item
key.obj: key.cpp key.h
$(compile) key
tlib $(library) -+key
list.obj: list.cpp list.h item.h
$(compile) list
tlib $(library) -+list
selector.obj: selector.cpp key.h selector.h stritem.h \
list.h window.h
$(compile) selector
tlib $(library) -+selector
stritem.obj: stritem.cpp stritem.h error.h item.h
$(compile) stritem
tlib $(library) -+stritem
window.obj: window.cpp window.h disp.h error.h stritem.h item.h
$(compile) window
tlib $(library) -+window
# -- Compile executable programs
poly.exe: poly.cpp
$(link) poly
tkey.obj: tkey.cpp key.h
$(compile) tkey
tkey.exe: tkey.obj key.obj
$(link) tkey.obj
terror.obj: terror.cpp error.h
$(compile) terror
terror.exe: terror.obj error.obj
$(link) terror.obj
titem.obj: titem.cpp item.h
$(compile) titem
titem.exe: titem.obj item.obj
$(link) titem.obj
tlist.obj: tlist.cpp item.h list.h
$(compile) tlist
tlist.exe: tlist.obj item.obj list.obj
$(link) tlist.obj
tstritem.obj: tstritem.cpp error.h item.h stritem.h
$(compile) tstritem
tstritem.exe: tstritem.obj error.obj item.obj stritem.obj
$(link) tstritem.obj
tselect.obj: tselect.cpp error.h key.h stritem.h item.h \
list.h window.h selector.h disp.h
$(compile) tselect
tselect.exe: tselect.obj error.obj key.obj stritem.obj item.obj \
list.obj window.obj selector.obj disp.obj
$(link) tselect.obj
tstrlist.obj: tstrlist.cpp error.h key.h stritem.h item.h \
list.h window.h selector.h disp.h
$(compile) tstrlist
tstrlist.exe: tstrlist.obj error.obj key.obj stritem.obj item.obj \
list.obj window.obj selector.obj disp.obj
$(link) tstrlist.obj
twindow.obj: twindow.cpp error.h key.h stritem.h item.h list.h \
window.h selector.h disp.h
$(compile) twindow
twindow.exe: twindow.obj error.obj key.obj stritem.obj item.obj \
list.obj window.obj selector.obj disp.obj
$(link) twindow.obj
tcommand.obj: tcommand.cpp error.h key.h stritem.h item.h list.h \
window.h selector.h disp.h
$(compile) tcommand
tcommand.exe: tcommand.obj error.obj key.obj stritem.obj item.obj \
list.obj window.obj selector.obj disp.obj
$(link) tcommand.obj
wintool.obj: wintool.cpp wintool.h key.h error.h command.h \
list.h window.h selector.h stritem.h disp.h
$(compile) wintool
wintool.exe: wintool.obj error.obj key.obj stritem.obj item.obj \
list.obj window.obj selector.obj disp.obj
$(link) wintool.obj